//
//  UIViewLinkmanTouch.m
//  HTAppBeauty
//
//  Created by zhangwq on 15/7/29.
//  Copyright (c) 2015年 HT. All rights reserved.
//

#import "UIViewLinkmanTouch.h"

@implementation UIViewLinkmanTouch{
    UIColor *selfColor;
}

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        
    }
    return self;
}

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
    [super touchesBegan:touches withEvent:event];
    selfColor=self.backgroundColor;
    [self setBackgroundColor:[UIColor colorWithRed:227/255.0 green:227/255.0 blue:227/255.0 alpha:1.0]];
}
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
    [super touchesEnded:touches withEvent:event];
    [self setBackgroundColor:selfColor];
}
- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event {
    [super touchesCancelled:touches withEvent:event];
    [self setBackgroundColor:selfColor];
}

@end
